package com.mybatisplus.demo.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mybatisplus.demo.dao.StudentMapper;
import com.mybatisplus.demo.entity.Student;
import com.mybatisplus.demo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:
 * @Date: 2019-10-11
 * @Version: V1.0
 * @Description: 实现类继承ServiceImpl后实现接口，
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

    @Autowired
    private StudentMapper studentMapper;
    @Override
    public List<Student> selectAll(QueryWrapper<Student> wrappers) {
        return studentMapper.selectAll(wrappers);
    }
}
